package mybatis.domain;

import java.sql.Date;
import java.util.List;

public class User05{
	private String id;
	private String password;
	private String name;
	private Integer age;
	private Date regDate;
	
	private List<Post> posts;
	
	@Override
	public String toString(){		
		return String.format("%s, %s, %s, %d, %s, %s",id,password,name,age,regDate,posts);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Date getRegDate() {
		return regDate;
	}

	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}

	public List<Post> getPosts() {
		return posts;
	}

	public void setPosts(List<Post> posts) {
		this.posts = posts;
	}
	
}